]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Include "Today" button in keynav
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Feb 2015 19:09:56 +0000 (20:09 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 3 Mar 2015 09:37:37 +0000 (10:37 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=706903

js/ui/dateMenu.js

index 4316006c413c6c1711d9d9a9ffb7b78a711cb471..f3c374d07a0cd828708728dffc569d98045d0cfd 100644 (file)
@@ -37,6 +37,7 @@ const TodayButton = new Lang.Class({
         // until the selected date changes.
         this.actor = new St.Button({ style_class: 'datemenu-today-button',
                                      x_align: St.Align.START,
+                                     can_focus: true,
                                      reactive: false
                                    });
         this.actor.connect('clicked', Lang.bind(this,
@@ -59,7 +60,7 @@ const TodayButton = new Lang.Class({
             function(calendar, date) {
                 // Make the button reactive only if the selected date is not the
                 // current date.
-                this.actor.can_focus = this.actor.reactive = !_isToday(date)
+                this.actor.reactive = !_isToday(date)
             }));
     },